//
//  ThirdViewController.m
//  王宇先_07_导航栏控制器
//
//  Created by wyx on 16/3/17.
//  Copyright © 2016年 Apon. All rights reserved.
//

#import "ThirdViewController.h"
#import "ViewController.h"

@interface ThirdViewController ()

@end

@implementation ThirdViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor blueColor];
    UIBarButtonItem *r1 = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCamera target:self action:@selector(handleCamera:)]autorelease];
    UIBarButtonItem *r2 = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemRefresh target:self action:@selector(handleRefresh:)]autorelease];
    self.navigationItem.rightBarButtonItems = @[r2, r1];
//    [r1 release];
//    [r2 release];
}
- (void)handleCamera:(UIBarButtonItem *)camera {
    
}
- (void)handleRefresh:(UIBarButtonItem *)refresh {
    
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
